package com.zzw.design.proxy;

public class Proxy implements Sourceable{

	private Source source;
	
	public Proxy(){
		super();
		this.source = new Source();
	}
	
	public void method() {
		before();
		source.method();
		atfer();
	}
	
	private void atfer() {
		System.out.println("after proxy!");
	}
	
	private void before() {
		System.out.println("before proxy!");
	}
	
	public static void main(String[] args) {
		Sourceable source = new Proxy();
		source.method();
	}

}
